#include "stdafx.h"
#include "SDLRenderable.h"
#include "IRenderableComponent.h"

namespace ZeEngine
{
	SDLRenderable::SDLRenderable(IRenderableComponent* pComponent, const Vector2D<f32>& position, f32 interpolation, f32 rotation, u32 viewPortID) :
																		m_pComponent(pComponent),
																		m_position(position),
																		m_interpolation(interpolation),
																		m_rotation(rotation),
																		m_viewPortID(viewPortID)
	{
	}


	SDLRenderable::~SDLRenderable()
	{
	}

	void SDLRenderable::Render(SDL_Renderer& renderer)
	{
        m_pComponent->Render(renderer, m_position, m_rotation, m_interpolation);
	}
}
